package com.zlq.cn.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author zhoucl
 * @since 2024-05-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("async_job")
@ApiModel(value = "AsyncJob对象", description = "")
public class AsyncJob implements Serializable {

    public static final String ALI_AI_IMAGE_TO_WORD = "ali_ai_image_to_word";

    public static final String ALI_AI_PDF_TO_WORD = "ali_ai_pdf_to_word";

    public static final String ALI_AI_IMAGE_TO_EXCEL = "ali_ai_image_to_excel";

    public static final String ALI_AI_PDF_TO_EXCEL = "ali_ai_pdf_to_excel";

    public static final String ALI_AI_PDF_TO_IMAGE = "ali_ai_pdf_to_image";

    public static final String ALI_AI_IMAGE_TO_PDF = "ali_ai_image_to_pdf";

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String param;

    private String data;

    private String imei;

    @ApiModelProperty(value = "请求结果状态；1：成功，0：失败")
    private Integer resultStatus;

    @ApiModelProperty(value = "任务状态；1：成功，0：失败，2：进行中")
    private Integer jobStatus;

    @ApiModelProperty(value = "ali_ai_image_to_word,ali_ai_pdf_to_word," +
            "ali_ai_image_to_excel,ali_ai_pdf_to_excel," +
            "ali_ai_pdf_to_image,ali_ai_image_to_pdf")
    private String type;

    private String result;

    private LocalDateTime createTime;
}
